﻿using System;
using YunZuan.Models.Attributes;
using YunZuan.Models.Entities;

namespace Wholesaler.Models.DBModels
{
    [Table(TableName = "yz_customer_remarks", PrimaryKey = "ID")]
    public class CustomerRemarks : BaseEntity
    {
        public CustomerRemarks()
        { }
        #region Model
        private int _id;
        /// <summary>
        ///商品ID
        /// </summary>
        [Column(IsAutoIncrement = true)]
        public int ID
        {
            get { return _id; }
            set { this.ChangeNotify<int>("ID", value, ref _id); }
        }
        private int _customerid;
        /// <summary>
        ///客户ID
        /// </summary>
        public int customerID
        {
            get { return _customerid; }
            set { this.ChangeNotify<int>("customerID", value, ref _customerid); }
        }
        private string _remarks;
        /// <summary>
        ///备注
        /// </summary>
        public string remarks
        {
            get { return _remarks; }
            set { this.ChangeNotify<string>("remarks", value, ref _remarks); }
        }
        private int _userid;
        /// <summary>
        ///创建人
        /// </summary>
        public int userID
        {
            get { return _userid; }
            set { this.ChangeNotify<int>("userID", value, ref _userid); }
        }
        private DateTime _createtime;
        /// <summary>
        ///创建时间
        /// </summary>
        public DateTime CreateTime
        {
            get { return _createtime; }
            set { this.ChangeNotify<DateTime>("CreateTime", value, ref _createtime); }
        }
        #endregion

    }

    public class CustomerRemarksResult
    {
        public int? CustomerID { get; set; }
        public string UserName { get; set; }
        public string Remarks { get; set; }
        public DateTime? CreateTime { get; set; }
    }
}
